﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace WLMes.Models
{
    /// <summary>
    /// 输入参数
    /// </summary>
    public class ENERGY_DATA_request
    {
        /// <summary>
        /// 请求编号
        /// </summary>
        public string RequestCode { get; set; }
        /// <summary>
        /// 产线编号
        /// </summary>
        public string LineCode { get; set; }
        /// <summary>
        /// 工序编号
        /// </summary>
        public string OperationCode { get; set; }
        /// <summary>
        /// 工序短名称
        /// </summary>
        public string OperationShortName { get; set; }
        /// <summary>
        /// 事件码
        /// </summary>
        public ushort EventCode { get; set; }
        /// <summary>
        /// 请求（操作）时间
        /// </summary>
        public string RequestTime { get; set; }
        /// <summary>
        /// 测量值集合
        /// </summary>
        public List<EnergyDataSets> EnergyDataSets { get; set; }

    }
    /// <summary>
    /// 测量值集合
    /// </summary>
    public class EnergyDataSets
    {
        /// <summary>
        /// 序号
        /// </summary>
        public int SequenceNumber { get; set; }
        /// <summary>
        /// 能源项ID
        /// </summary>

        public int EnergyID { get; set; }
        /// <summary>
        /// 能源项名称
        /// </summary>
        public string EnergyName { get; set; }
        /// <summary>
        /// 能源项对应的实际采集结果值
        /// </summary>
        public string EnergyValue { get; set; }
        /// <summary>
        /// 能源项对应的实际采集时间
        /// </summary>
        public string CollectTime { get; set; }

    }
    /// <summary>
    /// 回传数据
    /// 返回信息
    /// </summary>
    public class ENERGY_DATA_response
    {
        /// <summary>
        /// 事件码
        /// </summary>
        public ushort EventCode { get; set; }
        /// <summary>
        /// 描述信息
        /// </summary>
        public string EventDescription { get; set; }

    }
}
